
<fieldset><legend>我的合同信息</legend>
<table>
	<tr align="center">
		<th width="40">序号</th>
		<th>流水号</th>
		<th>名称</th>
		<th>合同期起</th>
		<th>合同期止</th>
		<th>期限(天)</th>
		<th>剩余(天)</th>

		<th>备注</th>
	</tr>
	{[foreach name=outer key=key item=item from=$my]} 
	{[assign var="no" value="`$key+$pager->from+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>
		<td>{[$item.id]}</td>
		<td>{[$item.name]}</td>
		<td>{[$item.t1]}</td>
		<td>{[$item.t2]}</td>
		<td>{[$item.d1]}</td>
		<td>{[$item.d2]}</td>
		<td>{[$item.content]}</td>
	</tr>
	{[/foreach]}
</table>
</fieldset>

<fieldset><legend>添加合同信息</legend>
<form id="form_add" method="post" action="{[$root]}{[$postLink]}{[$p1]}{[$p2]}"><input type="hidden" name="id"
	value="{[$smarty.request.id]}" /><input type="hidden" name="day" id="day" value="{[$result.day]}" />
<table>
	<tr>
		<td align="right">员工：</td>
		<td colspan="3">{[$emp.name]}({[$emp.id]})</td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td colspan="3"><input type="text" name="name" size="20" value=""></td>
	</tr>
	<tr>
		<td width="20%" align="right">期间：</td>
		<td width="80%"><input type="text" name="date1" id="date1" size="10" value=""> 至 <input type="text" name="date2" id="date2" size="10" value=""></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" id="content" cols="55"></textarea></td>
	</tr>
</table>
</form>
</fieldset>

<script type="text/javascript" src="js/emp/contract/add.js?r={[$smarty.now]}"></script>
